<?php /* Smarty version 2.6.20, created on 2012-07-31 07:17:04
         compiled from orders_add.html */ ?>
<link href="images/skin.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}

.error {
	color: red;
}
-->
</style>
<script charset="utf-8" src="kindeditor-4.0.2/kindeditor.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript" src="js/jquery.validate.js"></script>

<script>
	$(document).ready(function() {
		var editor;
		KindEditor.ready(function(K) {
			K('select[name=charset]').change(function() {
				if (editor) {
					editor.remove();
					editor = null;
				}
				editor = K.create('textarea[name="content"]', {
					langType : this.value
				});
			});
			K('select[name=charset]').change();
		});
		$("#domain").validate({
			rules : {
				orderId : "required",
				origin : "required",
				destination : "required"
			},
			messages : {
				orderId : "Order number required.",
				origin : "Origin required.",
				destination : "Destination required."
			},
			errorPlacement : function(error, element) {
				error.appendTo(element.parent().parent().next().empty());
			}
		});
	});
</script>

<body>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="17" valign="top" background="images/mail_leftbg.gif"><img
				src="images/left-top-right.gif" width="17" height="29" /></td>
			<td valign="top" background="images/content-bg.gif"><table
					width="100%" height="31" border="0" cellpadding="0" cellspacing="0"
					class="left_topbg" id="table2">
					<tr>
						<td height="31"></td>
					</tr>
				</table></td>
			<td width="16" valign="top" background="images/mail_rightbg.gif"><img
				src="images/nav-right-bg.gif" width="16" height="29" /></td>
		</tr>

		<tr>
			<td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
			<td valign="top" bgcolor="#F7F8F9">
				<form id="domain" action="orders_add.php?act=add" method="post">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<br>
						<tr class="nowtable">
							<td class="left_bt2" style="padding-left: 10px;" colspan="2">Add
								New Order</td>
						</tr>
						<tr>
							<td width="32%" height="30" bgcolor="#f2f2f2" class="left_txt"
								style="padding-left: 10px;" align="left">order id：<span
								style="padding-left: 36px;">
								<textarea style="width: 188px;vertical-align: top"  name="orderId" value="<?php echo $this->_tpl_vars['list']['orderId']; ?>
"></textarea></span>
							</td>
							<td bgcolor="#f2f2f2" class="left_txt"></td>
						</tr>					
						<tr>
							<td width="32%" height="30" bgcolor="#f2f2f2" class="left_txt"
								style="padding-left: 10px;" align="left">items：<span
								style="padding-left: 50px;"><input style="width: 188px;"
									type="text" name="items" value="1"></span>
							</td>
							<td bgcolor="#f2f2f2" class="left_txt"></td>
						</tr>
						<tr>
							<td align="left" style="padding-left: 350px; padding-top: 10px"><input
								type="submit" name="submit" value="Submit"></td>
						</tr>
					</table>
				</form>
			</td>
			<td background="images/mail_rightbg.gif">&nbsp;</td>
		</tr>
		<tr>
			<td valign="bottom" background="images/mail_leftbg.gif"><img
				src="images/buttom_left2.gif" width="17" height="17" /></td>
			<td background="images/buttom_bgs.gif"><img
				src="images/buttom_bgs.gif" width="17" height="17"></td>
			<td valign="bottom" background="images/mail_rightbg.gif"><img
				src="images/buttom_right2.gif" width="16" height="17" /></td>
		</tr>
	</table>
</body>